<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        var a = 15;
        var b = 3;
        var c = 2;
        var money = 200;
        var n = 0;
        for (i = 1; i <= money / a; i++) {//最多买money / a个球拍
            for (j = 1; j <= money / b; j++) {//最多买money / b个球
                for (k = 1; k <= money / c; k++) {//最多买money / c个水
                    if (i * a + j * b + k*c == 200) {//正好花完200
                        n++;//每次的可以+1
                    }
                }
            }
        }
        console.log("有"+n+"种可能");
    </script>
</head>
<body>

<script>
    for(var a=1;a<13;a++){
        for(var b=1;b<61;b++){
            for(var c=1;c<91;c++){
                if(15*a+3*b+2*c==200){
                    document.write("羽毛球拍"+a+"个"+"&nbsp;&nbsp;"+"球"+b+"只"+"&nbsp;&nbsp;"+"水"+c+"瓶"+"<br/>");
                }
            }
        }
    }
</script>
</body>
</html>